package com.app.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.poi.hpsf.Decimal;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_invite_config")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class InviteConfigModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer inviteCount;
    private Integer inviteVoucher;
    private Double brokerage;
    private Double brokerageTwo;
    private Double transactionFeeRatio;
    private Double vipPrice;
    private Double vipGive;
    private Double conversion;
    @TableField(exist = false)
    private Double inviteIntegral;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    //市级代理划分比例
    private BigDecimal cityBili;
    //区级代理划分比例
    private BigDecimal areaBili;
}
